
package Navigation;

class LinkTopologyObjectImpl implements ITopologyObject{

	private int ID;
	private int from;
	private int to;
	private String gao_id;
	
    public LinkTopologyObjectImpl(String content) {
    	String[] linkContent = content.split("\\s");
    	this.ID = Integer.parseInt(linkContent[0]);
    	this.from = Integer.parseInt(linkContent[1]);
    	this.to = Integer.parseInt(linkContent[2]);
    	this.gao_id = linkContent[3];
    }
    
    public String write() {
        throw new UnsupportedOperationException("Not supported yet.");
    }
    
    public int getID(){
    	return this.ID;
    }
    
    public int getFrom(){
    	return this.from;
    }
    
    public int getTo(){
    	return this.to;
    }
}
